/*
 * AJAX function drawing chart with positions in search engines
 */
function statCall(url, key) {
    var urlwebsite = $('#hid-main-wsurl').val();
    if (url!="" && key!=""){
        var response = '';
        $.ajax({
            type : 'post',
            url : urlwebsite+'sys/backend_page/stat',
            data : ({
                url: url,
                key: key
            }),
            success: function(response){
                $("#statchart").attr("src",response);
            }
        });
    }

}
